package com.kfm.jdbc.day0329;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Arrays;

public class Demo04 {

    public static void main(String[] args) {
        try (FileInputStream fis = new FileInputStream("d:\\io\\hxx.png")) {
            byte[] bytes1 = fis.readAllBytes();
            System.out.println(Arrays.toString(bytes1));
        } catch (FileNotFoundException ex) {
            throw new RuntimeException(ex);
        } catch (IOException ex) {
            throw new RuntimeException(ex);
        }
    }
}
